<%
year = params["year"]
month = params["month"]
day = params["day"]
user_id = params["user"]
date = Date.new(year.to_i,month.to_i,day.to_i)
wday_name = l(:wt_week_day_names).split(',')
memo=WtDailyMemo.find(:first, :conditions=>["day=:d and user_id=:u",{:d=>date,:u=>user_id}])
if memo then
%>
<textarea name="memo" rows="15" cols="100"><%=memo.description -%></textarea>
<%else%>
<textarea name="memo" rows="15" cols="100"></textarea>
<%end%>
<br/>
<%= submit_tag l(:wt_update) %>
